/**
 * 
 */
package com.googlecode.xcarve.config;

import com.alibaba.fastjson.JSONObject;
import com.googlecode.xcarve.common.config.CarveConstances;

/**
 * @author duxinyun
 *
 */
public class ConfigProvider extends Config {

	private String  interfaceRefName; // 接口实现类
	private Integer maxRequest;

	public String getInterfaceRefName() {
		return interfaceRefName;
	}

	public void setInterfaceRefName(String interfaceRefName) {
		this.interfaceRefName = interfaceRefName;
	}

	public Integer getMaxRequest() {
		return maxRequest;
	}

	public void setMaxRequest(Integer maxRequest) {
		this.maxRequest = maxRequest;
	}

	/* (non-Javadoc)
	 * @see com.googlecode.xcarve.config.Config#toServicePath()
	 */
	@Override
	protected String toServicePath() {
		String servicePath = super.toServicePath();
		StringBuilder path = new StringBuilder(servicePath);
		path.append(CarveConstances.SEPTOR_PATH)
		.append(JSONObject.toJSONString(this));
		return path.toString();
	}
	
}
